package com.siyue.neo4j_demo.service.impl;

import com.siyue.neo4j_demo.dao.PersonRepository;
import com.siyue.neo4j_demo.entity.Person;
import com.siyue.neo4j_demo.service.PersonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PersonServiceImpl implements PersonService {

    @Resource
    PersonRepository personRepository;

    @Override
    public Person addDongMan(Person person) {
        return personRepository.save(person);
    }
}
